#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
    char arr[10000];
    gets(arr);
    char* ps = arr;
    int m = strlen(arr);//
    for (int i = m - 1; i >= 0; i--)
    {
        printf("%c", *(ps + i));
    }
    return 0;
}